from lib.ANNActions import _actions_
from lib.ANNBody import _body_
from lib.ANNLocation import _places_
import cPickle as pickle

_num_ = 5
for x in range(_num_):
    memory_file = file('memory/ANN_Memory-%s.memory' % x,'w')
    write_segment = {}
    for action in _actions_:
        if _actions_[action] == 'ROOMS':
            for place in _places_:
                write_segment[action+'_'+place] = 0
        else:
            write_segment[action] = 0
    pickle.dump(write_segment,memory_file)
    write_segment = {}
    for part in _body_:
        write_segment[part] = 0
    pickle.dump(write_segment,memory_file)
    write_segment = {}
    for place in _places_:
        write_segment[place] = 0
    pickle.dump(write_segment,memory_file)
    write_segment = []
    pickle.dump(write_segment,memory_file)
    memory_file.close()

